<?php
namespace common\models;

use yii\db\ActiveRecord;
use yii\behaviors\TimestampBehavior;

/**
 * 留言板模型
 * @author ZCY
 */
class ARChat extends ActiveRecord
{
    const TYPE_USER = 1;    //用户信息
    const TYPE_SYSTEM = 2;  //系统信息

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%chat}}';
    }
    
    
    public function behaviors()
    {
        return [
            TimestampBehavior::className(),
        ];
    }
    

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'order_id'      => '订单编号',
            'uid'           => '发送方用户id',
            'message'       => '消息内容',
        ];
    }

}
